/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package UserObject;
import DuLieu.GiaoTiep;
/**
 *
 * @author NSPDL
 */
public class PhongBan implements GiaoTiep{
    private int IdPhong;
    private String TenPhong;
    private String MoTa;
    private int HSCongViec;

    public PhongBan() {
    }

    public PhongBan(int IdPhong, String TenPhong, String MoTa, int HSCongViec) {
        this.IdPhong = IdPhong;
        this.TenPhong = TenPhong;
        this.MoTa = MoTa;
        this.HSCongViec = HSCongViec;
    }

    public int getIdPhong() {
        return IdPhong;
    }

    public void setIdPhong(int IdPhong) {
        this.IdPhong = IdPhong;
    }

    public String getTenPhong() {
        return TenPhong;
    }

    public void setTenPhong(String TenPhong) {
        this.TenPhong = TenPhong;
    }

    public String getMoTa() {
        return MoTa;
    }

    public void setMoTa(String MoTa) {
        this.MoTa = MoTa;
    }

    public int getHSCongViec() {
        return HSCongViec;
    }

    public void setHSCongViec(int HSCongViec) {
        this.HSCongViec = HSCongViec;
    }

    @Override
    public Object[] toObject() {
        return new Object[]{getIdPhong(),getTenPhong(),getMoTa(),getHSCongViec()};
    }
    
}
